<?php
if(isset($_GET['ajax'])){
	if(isset($_GET['vote']) and isset($_GET['idjoke'])){
		if(! Joke::voteJoke($_GET['idjoke'],$_GET['vote'],$user)){
			print "User already vote";
		}
		exit();
	}
}
?>